﻿namespace LogManager.Core.Providers
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Xml.Linq;
    using LogManager.Core.Models;
    using LogManager.Core.Models.Smtp;

    public class DefaultXmlTemplateProvider : IXmlTemplateProvider
    {
        public XElement LocationTemplate
        {
            get { return XElement.Parse(Location.DEFAULT_TEMPLATE); }
        }

        public XElement ServerTemplate
        {
            get { return XElement.Parse(Server.DEFAULT_TEMPLATE); }
        }

        public XElement PlateformTemplate
        {
            get { return XElement.Parse(Plateform.DEFAULT_TEMPLATE); }
        }

        public XElement WarehouseTemplate
        {
            get { return XElement.Parse(Warehouse.DEFAULT_TEMPLATE); }
        }

        public XDocument ConfigurationTemplate
        {
            get { return XDocument.Parse(Configuration.DEFAULT_TEMPLATE); }
        }

        public XElement SettingsTemplate
        {
            get { return XElement.Parse(Settings.DEFAULT_TEMPLATE); }
        }

        public XElement SmtpSettingsTemplate
        {
            get { return XElement.Parse(SmtpSettings.DEFAULT_TEMPLATE); }
        }

        public XElement SmtpServerTemplate
        {
            get { return XElement.Parse(SmtpServer.DEFAULT_TEMPLATE); }
        }

        public XElement SmtpFromTemplate
        {
            get { return XElement.Parse(From.DEFAULT_TEMPLATE); }
        }

        public XElement SmtpToTemplate
        {
            get { return XElement.Parse(To.DEFAULT_TEMPLATE); }
        }
    }
}
